<script setup lang='ts'>
import { ref } from 'vue';

type toDo = {
  id: string
  name: string
  price: number
}
const toDoList = ref<toDo[]>([
  { id: "1", name: '男士鞋子', price: 280 },
  { id: "2", name: '女士卫衣', price: 180 },
])
</script>

<template>
  <div>
    <ul>
      <li v-for="item in toDoList" :key="item.id">
        序号:{{ item.id }},事件:{{ item.name }},价格:{{ item.price }}}
      </li>
    </ul>
  </div>
</template>

<style scoped></style>